projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b71f280
)
gtkcssprovider: fix a crash in gtk_css_provider_parsing_error
author
Dan Winship
<danw@gnome.org>
Fri, 9 Sep 2011 13:32:54 +0000
(09:32 -0400)
committer
Dan Winship
<danw@gnome.org>
Fri, 9 Sep 2011 13:37:44 +0000
(09:37 -0400)
"info" was being declared in two different scopes, and the one that
was freed wasn't the one that was set.
gtk/gtkcssprovider.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssprovider.c
b/gtk/gtkcssprovider.c
index 6f5faed7d6339c636b025ca7ca8567f177092ea8..10373427e1e9b8d4419fb44f3bffe8ff98b4f5b5 100644
(file)
--- a/
gtk/gtkcssprovider.c
+++ b/
gtk/gtkcssprovider.c
@@
-1057,7
+1057,7
@@
gtk_css_provider_parsing_error (GtkCssProvider *provider,
file = gtk_css_section_get_file (section);
if (file)
{
-
GFileInfo *
info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, 0, NULL, NULL);
+ info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME, 0, NULL, NULL);
if (info)
path = g_file_info_get_display_name (info);